package edu.qhst.user.constant;

/**
 * 邮件 html模版代码
 * @author 加浓美式
 * @Data 2023/6/21
 */
public class MailConsts {
    public static String getOKMailMsg(String name) {
        return  "<html>\n" +
                "<head>\n" +
                "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n" +
                "</head>\n" +
                "<body>\n" +
                "<div>\n" +
                "    <includetail>\n" +
                "        <div align=\"center\">\n" +
                "            <div class=\"open_email\" style=\"margin-left: 8px; margin-top: 8px; margin-bottom: 8px; margin-right: 8px;\">\n" +
                "                <div>\n" +
                "                    <br>\n" +
                "                    <span class=\"genEmailContent\">\n" +
                "                        <div id=\"cTMail-Wrap\"\n" +
                "                             style=\"word-break: break-all;box-sizing:border-box;text-align:center;min-width:320px; max-width:660px; border:1px solid #f6f6f6; background-color:#f7f8fa; margin:auto; padding:20px 0 30px; font-family:'helvetica neue',PingFangSC-Light,arial,'hiragino sans gb','microsoft yahei ui','microsoft yahei',simsun,sans-serif\">\n" +
                "                            <div class=\"main-content\" style=\"\">\n" +
                "                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse\">\n" +
                "                                    <tbody>\n" +
                "                                    <tr style=\"font-weight:300\">\n" +
                "                                        <td style=\"width:3%;max-width:30px;\"></td>\n" +
                "                                        <td style=\"max-width:600px;\">\n" +
                "                                            <div id=\"cTMail-logo\" style=\"width:92px; height:40px;\">\n" +
                "                                                <a href=\"\">\n" +
                "                                                    <img border=\"0\"\n" +
                "                                                         src=\"http://rvo9zyaqx.hn-bkt.clouddn.com/qhstlogo.png\"\n" +
                "                                                         style=\"width:92px; height:40px;display:block\">\n" +
                "                                                </a>\n" +
                "                                            </div>\n" +
                "                                            <p style=\"height:2px;background-color: #00a4ff;border: 0;font-size:0;padding:0;width:100%;margin-top:50px;\"></p>\n" +
                "\n" +
                "                                            <div id=\"cTMail-inner\"\n" +
                "                                                 style=\"background-color:#fff; padding:23px 0 20px;box-shadow: 0px 1px 1px 0px rgba(122, 55, 55, 0.2);text-align:left;\">\n" +
                "                                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse;text-align:left;\">\n" +
                "                                                    <tbody>\n" +
                "                                                    <tr style=\"font-weight:300\">\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                        <td style=\"max-width:480px;text-align:left;\">\n" +
                "                                                            <h1 id=\"cTMail-title\"\n" +
                "                                                                style=\"font-size: 20px; line-height: 36px; margin: 0px 0px 22px;\">\n" +
                "                                                                【IT启航社团】欢迎加入我们\n" +
                "                                                            </h1>\n" +
                "\n" +
                "                                                            <p id=\"cTMail-userName\"\n" +
                "                                                               style=\"font-size:14px;color:#333; line-height:24px; margin:0;\">\n" +
                "                                                                尊敬的" + name + "，您好！\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <p class=\"cTMail-content\"\n" +
                "                                                               style=\"line-height: 24px; margin: 6px 0px 0px; overflow-wrap: break-word; word-break: break-all;\">\n" +
                "                                                                <span style=\"color: rgb(51, 51, 51); font-size: 14px;\">\n" +
                "                                                                    欢迎加入启航社团\n" +
                "                                                                </span>\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <p class=\"cTMail-content\"\n" +
                "                                                               style=\"line-height: 24px; margin: 6px 0px 0px; overflow-wrap: break-word; word-break: break-all;\">\n" +
                "                                                                <span style=\"color: rgb(51, 51, 51); font-size: 14px;\">完成注册，请点击下面按钮进入官网。\n" +
                "                                                                    <span style=\"font-weight: bold;\">非本人操作可忽略。</span>\n" +
                "                                                                </span>\n" +
                "                                                            </p>\n" +
                "                                                            <p class=\"cTMail-content\"\n" +
                "                                                               style=\"font-size: 14px; color: rgb(51, 51, 51); line-height: 24px; margin: 6px 0px 0px; word-wrap: break-word; word-break: break-all;\">\n" +
                "                                                                <a id=\"cTMail-btn\" href=\"http://pm.javat.top\" title=\"\"\n" +
                "                                                                   style=\"font-size: 16px; line-height: 45px; display: block; background-color: rgb(0, 164, 255); color: rgb(255, 255, 255); text-align: center; text-decoration: none; margin-top: 20px; border-radius: 3px;\">\n" +
                "                                                                    点击访问IT启航社团官方网站\n" +
                "                                                                </a>\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <dl style=\"font-size: 14px; color: rgb(51, 51, 51); line-height: 18px;\">\n" +
                "                                                                <dd style=\"margin: 0px 0px 6px; padding: 0px; font-size: 12px; line-height: 22px;\">\n" +
                "                                                                    <p id=\"cTMail-sender\"\n" +
                "                                                                       style=\"font-size: 14px; line-height: 26px; word-wrap: break-word; word-break: break-all; margin-top: 32px;\">\n" +
                "                                                                        此致\n" +
                "                                                                        <br>\n" +
                "                                                                        <strong>IT启航团队</strong>\n" +
                "                                                                    </p>\n" +
                "                                                                </dd>\n" +
                "                                                            </dl>\n" +
                "                                                        </td>\n" +
                "                                                        <!--                                                        {{&#45;&#45;   右侧表格，设置右边距用的  &#45;&#45;}}-->\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                    </tr>\n" +
                "                                                    </tbody>\n" +
                "                                                </table>\n" +
                "                                            </div>\n" +
                "\n" +
                "                                            <!--                                            {{&#45;&#45;   页面底部的推广  &#45;&#45;}}-->\n" +
                "                                            <div id=\"cTMail-copy\"\n" +
                "                                                 style=\"text-align:center; font-size:12px; line-height:18px; color:#999\">\n" +
                "                                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse\">\n" +
                "                                                    <tbody>\n" +
                "                                                    <tr style=\"font-weight:300\">\n" +
                "<!--                                                        {{&#45;&#45;   左，左边距  &#45;&#45;}}-->\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                        <!--                                                        {{&#45;&#45;   中，正文  &#45;&#45;}}-->\n" +
                "                                                        <td style=\"max-width:540px;\">\n" +
                "\n" +
                "                                                            <p style=\"text-align:center; margin:20px auto 14px auto;font-size:12px;color:#999;\">\n" +
                "                                                                此为系统邮件，请勿回复。\n" +
                "                                                                <!--                                                                {{&#45;&#45;   可以加个链接  &#45;&#45;}}-->\n" +
                "                                                                <a href=\"\"\n" +
                "                                                                   style=\"text-decoration:none;word-break:break-all;word-wrap:normal; color: #333;\"\n" +
                "                                                                   target=\"_blank\">\n" +
                "                                                                    取消订阅\n" +
                "                                                                </a>\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <!--                                                            {{&#45;&#45;   可以加个图片，公众号二维码之类的  &#45;&#45;}}-->\n" +
                "                                                            <p id=\"cTMail-rights\"\n" +
                "                                                               style=\"max-width: 100%; margin:auto;font-size:12px;color:#999;text-align:center;line-height:22px;\">\n" +
                "                                                                Copyright©2023 加浓美式 AllRightsReserved.\n" +
                "<!--                                                                <img src=\"https://imgcache.qq.com/open_proj/proj_qcloud_v2/gateway/mail/cr.svg\"-->\n" +
                "<!--                                                                     style=\"margin-top: 10px;\">-->\n" +
                "                                                            </p>\n" +
                "                                                        </td>\n" +
                "                                                        <!--                                                        {{&#45;&#45;   右，右边距  &#45;&#45;}}-->\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                    </tr>\n" +
                "                                                    </tbody>\n" +
                "                                                </table>\n" +
                "                                            </div>\n" +
                "                                        </td>\n" +
                "                                        <td style=\"width:3%;max-width:30px;\"></td>\n" +
                "                                    </tr>\n" +
                "                                    </tbody>\n" +
                "                                </table>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </span>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "    </includetail>\n" +
                "</div>\n" +
                "</body>\n" +
                "</html>\n";
    }

    public static String getFailMailMsg(String name, String message) {
        return "<html>\n" +
                "<head>\n" +
                "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n" +
                "</head>\n" +
                "<body>\n" +
                "<div>\n" +
                "    <includetail>\n" +
                "        <div align=\"center\">\n" +
                "            <div class=\"open_email\" style=\"margin-left: 8px; margin-top: 8px; margin-bottom: 8px; margin-right: 8px;\">\n" +
                "                <div>\n" +
                "                    <br>\n" +
                "                    <span class=\"genEmailContent\">\n" +
                "                        <div id=\"cTMail-Wrap\"\n" +
                "                             style=\"word-break: break-all;box-sizing:border-box;text-align:center;min-width:320px; max-width:660px; border:1px solid #f6f6f6; background-color:#f7f8fa; margin:auto; padding:20px 0 30px; font-family:'helvetica neue',PingFangSC-Light,arial,'hiragino sans gb','microsoft yahei ui','microsoft yahei',simsun,sans-serif\">\n" +
                "                            <div class=\"main-content\" style=\"\">\n" +
                "                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse\">\n" +
                "                                    <tbody>\n" +
                "                                    <tr style=\"font-weight:300\">\n" +
                "                                        <td style=\"width:3%;max-width:30px;\"></td>\n" +
                "                                        <td style=\"max-width:600px;\">\n" +
                "                                            <div id=\"cTMail-logo\" style=\"width:92px; height:40px;\">\n" +
                "                                                <a href=\"\">\n" +
                "                                                    <img border=\"0\"\n" +
                "                                                         src=\"http://rvo9zyaqx.hn-bkt.clouddn.com/qhstlogo.png\"\n" +
                "                                                         style=\"width:92px; height:40px;display:block\">\n" +
                "                                                </a>\n" +
                "                                            </div>\n" +
                "                                            <p style=\"height:2px;background-color: #00a4ff;border: 0;font-size:0;padding:0;width:100%;margin-top:50px;\"></p>\n" +
                "\n" +
                "                                            <div id=\"cTMail-inner\"\n" +
                "                                                 style=\"background-color:#fff; padding:23px 0 20px;box-shadow: 0px 1px 1px 0px rgba(122, 55, 55, 0.2);text-align:left;\">\n" +
                "                                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse;text-align:left;\">\n" +
                "                                                    <tbody>\n" +
                "                                                    <tr style=\"font-weight:300\">\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                        <td style=\"max-width:480px;text-align:left;\">\n" +
                "                                                            <h1 id=\"cTMail-title\"\n" +
                "                                                                style=\"font-size: 20px; line-height: 36px; margin: 0px 0px 22px;\">\n" +
                "                                                                【IT启航社团】欢迎加入我们\n" +
                "                                                            </h1>\n" +
                "\n" +
                "                                                            <p id=\"cTMail-userName\"\n" +
                "                                                               style=\"font-size:14px;color:#333; line-height:24px; margin:0;\">\n" +
                "                                                                尊敬的"+ name + "，您好！\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <p class=\"cTMail-content\"\n" +
                "                                                               style=\"line-height: 24px; margin: 6px 0px 0px; overflow-wrap: break-word; word-break: break-all;\">\n" +
                "                                                                <span style=\"color: rgb(10, 10, 10); font-size: 14px;\">\n" +
                "                                                                    您的申请未通过我们的审核，原因如下：\n<br><br><strong>" + message + "</strong>" +
                "                                                                </span>\n" +
                "                                                                <br><br>\n" +
                "                                                                <span style=\"color: rgb(255, 10, 10); font-size: 16px;\">\n" +
                "                                                                </span>\n" +
                "                                                                <span style=\"color: rgb(10, 10, 10); font-size: 14px;\">\n" +
                "                                                                请重新申请加入！\n" +
                "                                                                </span>\n" +
                "                                                            </p>\n" +
                "                                                            <dl style=\"font-size: 14px; color: rgb(51, 51, 51); line-height: 18px;\">\n" +
                "                                                                <dd style=\"margin: 0px 0px 6px; padding: 0px; font-size: 12px; line-height: 22px;\">\n" +
                "                                                                    <p id=\"cTMail-sender\"\n" +
                "                                                                       style=\"font-size: 14px; line-height: 26px; word-wrap: break-word; word-break: break-all; margin-top: 32px;\">\n" +
                "                                                                        此致\n" +
                "                                                                        <br>\n" +
                "                                                                        <strong>IT启航团队</strong>\n" +
                "                                                                    </p>\n" +
                "                                                                </dd>\n" +
                "                                                            </dl>\n" +
                "                                                        </td>\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                    </tr>\n" +
                "                                                    </tbody>\n" +
                "                                                </table>\n" +
                "                                            </div>\n" +
                "                                            <div id=\"cTMail-copy\"\n" +
                "                                                 style=\"text-align:center; font-size:12px; line-height:18px; color:#999\">\n" +
                "                                                <table style=\"width:100%;font-weight:300;margin-bottom:10px;border-collapse:collapse\">\n" +
                "                                                    <tbody>\n" +
                "                                                    <tr style=\"font-weight:300\">\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                        <td style=\"max-width:540px;\">\n" +
                "\n" +
                "                                                            <p style=\"text-align:center; margin:20px auto 14px auto;font-size:12px;color:#999;\">\n" +
                "                                                                此为系统邮件，请勿回复。\n" +
                "                                                                <a href=\"\"\n" +
                "                                                                   style=\"text-decoration:none;word-break:break-all;word-wrap:normal; color: #333;\"\n" +
                "                                                                   target=\"_blank\">\n" +
                "                                                                    取消订阅\n" +
                "                                                                </a>\n" +
                "                                                            </p>\n" +
                "\n" +
                "                                                            <p id=\"cTMail-rights\"\n" +
                "                                                               style=\"max-width: 100%; margin:auto;font-size:12px;color:#999;text-align:center;line-height:22px;\">\n" +
                "                                                                Copyright©2023 加浓美式 AllRightsReserved.\n" +
                "                                                            </p>\n" +
                "                                                        </td>\n" +
                "                                                        <td style=\"width:3.2%;max-width:30px;\"></td>\n" +
                "                                                    </tr>\n" +
                "                                                    </tbody>\n" +
                "                                                </table>\n" +
                "                                            </div>\n" +
                "                                        </td>\n" +
                "                                        <td style=\"width:3%;max-width:30px;\"></td>\n" +
                "                                    </tr>\n" +
                "                                    </tbody>\n" +
                "                                </table>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </span>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "    </includetail>\n" +
                "</div>\n" +
                "</body>\n" +
                "</html>\n";
    }
}
